package org.yuyang.oschina_tabhostdemo;

/**
 * Created by yuyang on 9/23/16.
 */

public enum MainTab {
    NEWS(0, R.string.main_tab_name_news, R.drawable.tab_icon_new, TabFragment1.class),
    TWEET(1, R.string.main_tab_name_tweet, R.drawable.tab_icon_tweet, TabFragment2.class),
    QUICK(2, R.string.main_tab_name_quick, R.drawable.tab_icon_new, null),
    EXPLORE(3, R.string.main_tab_name_explore, R.drawable.tab_icon_explore, TabFragment3.class),
    ME(4, R.string.main_tab_name_my, R.drawable.tab_icon_me, TabFragment4.class);

    private int idx;
    private int resNameId;
    private int resIconId;
    private Class<?> clz;

    MainTab(int idx, int resNameId, int resIconId, Class<?> clz) {
        this.idx = idx;
        this.resNameId = resNameId;
        this.resIconId = resIconId;
        this.clz = clz;
    }

    public int getIdx() {
        return idx;
    }

    public void setIdx(int idx) {
        this.idx = idx;
    }

    public int getResNameId() {
        return resNameId;
    }

    public void setResNameId(int resNameId) {
        this.resNameId = resNameId;
    }

    public int getResIconId() {
        return resIconId;
    }

    public void setResIconId(int resIconId) {
        this.resIconId = resIconId;
    }

    public Class<?> getClz() {
        return clz;
    }

    public void setClz(Class<?> clz) {
        this.clz = clz;
    }
}
